package com.hkp.white.system.controller;

import com.hkp.white.system.domain.User;
import com.hkp.white.system.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    public UserService userService;

    @GetMapping("/hello")
    public List<User> helloWord(){
        return userService.findUserList(null);
    }

}
